<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
  <meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
  <title>易刀商城-登录</title>
  <link rel="stylesheet" type="text/css" href="{{ static('css/reset.css') }}">
  <link rel="stylesheet" type="text/css" href="{{ static('css/main.css') }}">
  <link rel="stylesheet" type="text/css" href="{{ static('css/index.css') }}"/>
  <script type="text/javascript" src="{{ static('js/vue-2.5.16.js') }}"></script>
  <script type="text/javascript" src="{{ static('js/axios-0.18.0.min.js') }}"></script>
</head>
<body>
<div class="login_top clearfix">
  <a href="index" class="login_logo"><img src="{{ static('images/logo-181-59.png') }}"></a>
</div>
<!--注意id绑定在哪里，vue就能控制哪里-->
<div class="login_form_bg" id="app">
  <div class="login_form_wrap clearfix">
    <div class="login_banner fl"></div>
    <div class="slogan fl">商品美 · 种类多 · 欢迎光临</div>
    <div class="login_form fr">
      <div class="login_title clearfix">
        <a href="javascript:;" class="cur">账户登录</a>
      </div>
      <div class="form_con">
        <div class="form_input cur">
          <form method="post" class="login-form" @submit="toLogin" v-cloak>
            {{ csrf_input }} <!--跨站请求伪造 cross site request forgery-->
            <input type="text" v-model="user.username" @blur="checkUsername" name="username" class="name_input"
                   placeholder="请输入用户名或手机号">
            <div v-show="errorUsername" class="user_error">{{ errorUsernameMsg }}</div>
            <input type="password" v-model="user.password" @blur="checkPassword" name="password" class="pass_input"
                   placeholder="请输入密码">
            <div v-show="errorPassword" class="pwd_error">{{ errorPasswordMsg }}</div>
            {% if code!=0 %}
              <div class="pwd_error">{{ respMsg }}</div>
            {% endif %}
            <div class="more_input clearfix">
              <input type="checkbox" v-model="remembered" name="remembered">
              <label>记住登录</label>
            </div>
            <input type="submit" value="登 录" class="input_submit">
          </form>
        </div>
      </div>
      <div class="third_party">
        <a @click="toLoginQQ" class="qq_login">QQ</a>
        <a href="{{ url('users:bindQQ') }}" class="qq_login">绑定账号</a>
        <a href="#" @click="toLoginWX" class="weixin_login">微信</a>
        <a href="{{ url('users:register') }}" class="register_btn">立即注册</a>
      </div>
    </div>
  </div>
</div>
<div class="footer no-mp">
  <div class="foot_link">
    <a href="#">关于我们</a>
    <span>|</span>
    <a href="#">联系我们</a>
    <span>|</span>
    <a href="#">招聘人才</a>
    <span>|</span>
    <a href="#">友情链接</a>
  </div>
  <p>CopyRight © 2023 北京凯文特商业股份有限公司 All Rights Reserved</p>
  <p>电话：010-****888 京ICP备*******8号</p>
</div>
<script type="text/javascript" src="{{ static('js/common.js') }}"></script>
<script type="text/javascript" src="{{ static('js/users/login.js') }}"></script>
</body>
</html>